import pytest
from selenium import webdriver



@pytest.fixture
def driver():
    driver = webdriver.Chrome()  # 创建dirver对象：启动浏览器
    driver.maximize_window()  # 最大化
    yield driver
    driver.quit()


def test_a(driver):
    driver.get("https://www.daidu.com")
    assert True
